firmware/tcgbios: Prevent integer truncation in the return value
authorAndrew Cooper <andrew.cooper3@citrix.com>
Mon, 25 Nov 2013 11:04:20 +0000 (11:04 +0000)
committerIan Campbell <ian.campbell@citrix.com>
Tue, 26 Nov 2013 10:58:35 +0000 (10:58 +0000)
commit944cea4588bb825c7e91396dcffa3436733d5f54
tree2426fb55c97501c6800073c94962d7f6ce9c3642
parented8c9047f6fc6d28fc27d37576ec8c8c1be68efe
firmware/tcgbios: Prevent integer truncation in the return value

rc inside the function is uint32_t.  None of the callers check the return
value.

Coverity ID: 1055442

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Acked-by: Ian Campbell <Ian.Campbell@citrix.com>
CC: Keir Fraser <keir@xen.org>
CC: Jan Beulich <JBeulich@suse.com>
CC: Ian Jackson <Ian.Jackson@eu.citrix.com>
tools/firmware/rombios/32bit/tcgbios/tcgbios.c